var app = getApp();
var Util = require('../../utils/util.js')
var Json = require('../../json.js')
Page({
  /**
   * 页面的初始数据
   */

  data: {
    parameter: {
      'title': '预约会议室',
      'navbar': '1'
    },
    background: [{
      url: 'http://q2di1ml9j.bkt.clouddn.com/6H0%5B1CMUXDWA%60%29XG@G7AZZL.png',
      title: "会议室内江展示2"
    }, {
      url: 'http://q2di1ml9j.bkt.clouddn.com/6H0%5B1CMUXDWA%60%29XG@G7AZZL.png',
      title: "会议室内江展示3"
    }, {
      url: 'http://q2di1ml9j.bkt.clouddn.com/6H0%5B1CMUXDWA%60%29XG@G7AZZL.png',
      title: "会议室内江展示4"
    }],
    indicatorDots: true,
    vertical: false,
    autoplay: false,
    interval: 2000,
    duration: 500,
    conven: {
      location: {
        name: "一楼大厅东侧三层"
      },
      capacity: "30-60人"
    },
    selectTime: {},
    times: [{
      header: "日",
      body: "15"
    }, {
      header: "一",
      body: "16"
    }, {
      header: "二",
      body: "17"
    }, {
      header: "三",
      body: "18"
    }, {
      header: "四",
      body: "19",
      checked: true
    }, {
      header: "五",
      body: "20"
    }, {
      header: "六",
      body: "21"
    }],
    timeTables: {
      times: [{
          time: "07:00"
        },
        {
          time: "08:00"
        },
        {
          time: "09:00"
        },
        {
          time: "10:00"
        },
        {
          time: "11:00"
        },
        {
          time: "12:00"
        },
        {
          time: "13:00"
        },
        {
          time: "14:00"
        },
        {
          time: "15:00"
        },
        {
          time: "16:00"
        },
        {
          time: "13:00"
        },
        {
          time: "17:00"
        },
        {
          time: "18:00"
        },
        {
          time: "19:00"
        },
        {
          time: "20:00"
        }
      ],
      details: [{
        title: "开会讨论",
        text: "'互联网+政务'方案讨论",
        top: "50",
        lineNum: 2,
        topNum: 2,
        borderColor: '#92cfed',
        bgColor:'#d7eefb',
        color:"#128bed"
      }, {
          title: "开会讨论",
          text: "'互联网+政务'方案讨论",
          top: "50",
          lineNum: 2,
          topNum: 6,
          borderColor: '#f9ce5d',
          bgColor: '#fff6db',
          color:"#a6915d"
        }]
    },
  }, 
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },


  catchTouchMove: function(res) {
    return false
  },
  onColse: function() {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

    var that = this

    //模拟数据
    that.setData({
      user: Json.default.userIn
    })
  },
  bindtap: function(e) {
    app.Tips({
      title: '提交成功',
      icon: 'success'
    }, '/pages/repair-receive/index');
  }
})